#ifndef NEWRULEDIALOG_H
#define NEWRULEDIALOG_H

#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QGroupBox>
#include <QtGui/QPushButton>
#include <QtGui/QTextEdit>


class Highlighter;


class RulesDialog : public QDialog
{
    Q_OBJECT
    
    QDialogButtonBox *buttonBox;
    QGroupBox *groupBox;
    QPushButton *btnFont;
    QPushButton *btnColor;
    QTextEdit *teKeyWords;

    QTextCharFormat currFormat;
    Highlighter * highlighter;

public:
    explicit RulesDialog(QWidget *parent = 0);
    ~RulesDialog();

    virtual void accept();
    void setupHighlighter( Highlighter * h );


    
private slots:
    void sltFont();
    void sltColor();

};

#endif // NEWRULEDIALOG_H
